<style>

a{
  text-decoration: none;
  color: #000;
}
a:hover{
  color: #B7977B;
}

p {
  font-size: 13px;
}

/* Important code */
input[name="tabs"], section {
  clear: both;
  padding-top: 10px;
  display: none;
}
label[name="labelTab"] {
  font-weight: bold;
  font-size: 14px;
  display: block;
  float: left;
  padding: 10px 30px;
  border-top: 2px solid transparent;
  border-right: 1px solid transparent;
  border-left: 1px solid transparent;
  border-bottom: 1px solid #DDD;
}
label[name="labelTab"]:hover {
  cursor: pointer;
  text-decoration: underline;
}
#tab1:checked ~ #content1, #tab2:checked ~ #content2 {
  display: block;
}
input[name="tabs"]:checked + label {
  border-top-color: #B7977B;
  border-right-color: #DDD;
  border-left-color: #DDD;
  border-bottom-color: transparent;
  text-decoration: none;
}
</style>

<?php

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#mst-ndkHealth-grid3').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<main>

  <input id="tab1" type="radio" name="tabs" checked>
    <label for="tab1" name="labelTab">Health</label>
  <input id="tab2" type="radio" name="tabs">
    <label for="tab2" name="labelTab">Non Health</label>
 

  <section id="content1">
    <?php $this->widget('bootstrap.widgets.TbGridView',array(
	'id'=>'mst-ndkHealth-grid3',
	'dataProvider'=>$model->searchModal(),
	'filter'=>$model,
	'columns'=>array(
		'client_number',
		'name',
		'policy_no',
		//'mobile',
		//'city_id',
		//'province_id',
		array(
        'header'=>'Select',
        'type'=>'raw',
        'value'=>'CHtml::radioButton("user",false,array(
                        "value"=>"$data->policy_no",
						"id_number"=>"$data->id",
						"typereg"=>"1",
						"mst_client_id"=>"$data->mst_client_id",
						"nama_client"=>"$data->name",
                        ))',
        'htmlOptions'=>array(
                'style'=>'text-align:center'
                ),
		),
	),
	)); ?>


  </section>



  <section id="content2">
    <?php $this->widget('bootstrap.widgets.TbGridView',array(
	'id'=>'mst-ndkHealth-grid3',
	'dataProvider'=>$model->searchModal2(),
	'filter'=>$model,
	'columns'=>array(
		'client_number',
		'name',
		'policy_no',
		//'mobile',
		//'city_id',
		//'province_id',
		array(
        'header'=>'Select',
        'type'=>'raw',
        'value'=>'CHtml::radioButton("user",false,array(
                        "value"=>"$data->policy_no",
						"id_number"=>"$data->id",
						"typereg"=>"2",
						"mst_client_id"=>"$data->mst_client_id",
						"nama_client"=>"$data->name",
                        ))',
        'htmlOptions'=>array(
                'style'=>'text-align:center'
                ),
		),
	),
	)); ?>
  </section>
</main>